<template>
    <div>
        <el-dialog :title="'流程图'" customClass="customWidth" :visible.sync="dialogVisible" class="dialogClass"   :close-on-click-modal="false" >
                <img style="width: 70% !important; " :src="'/api/processMgr/viewCurrentImage/'+this.imgdata.procInstId+'?'+new Date().getTime()">
        </el-dialog>
    </div>
</template>

<script>
    import {batchImport} from "@/views/wy-flow/api/actreprocdef";
    import dbl from '@/utils/dbl'

    export default {
        name: "flow-chart",
        data() {
            return {
                dialogVisible: false,
                myHeader:{Authorization: dbl.get('token')},
                isEdit: false,
                imgdata:''
            }
        },
        methods: {
            show(data) {
                this.dialogVisible = true
                this.isEdit = false
                this.imgdata=data

            },

        }
    }
</script>

<style lang='scss' scoped>
   .customWidth{
       /*margin: 0 !important;*/
       padding: 0 !important;
       width: 70%;
    }
    .dialogClass .el-dialog__body {
        /*padding: 20px;*/
        padding-top: 0px;
        padding-bottom: 0px;
        /*margin-left: 20px;*/
        /*color: #606266;*/
        /*font-size: 14px;*/
        max-height: 768px;
    }
</style>


